import React from 'react';
import { withRouter } from 'react-router-dom';
import { Icon } from 'weaver-mobile';
import './index.less';

@withRouter
export default class BackBtn extends React.Component {
  goBack = () => {
    window.history.back();
  }

  render () {
    return (
      <div className='edc-mobile-back'>
        <Icon type='arrow-left' size='md' onClick={ this.goBack }/>
      </div>
    )
  }
}